package com.fss.common.dao;
import com.fssDataModels.*;

import java.util.ArrayList;
import java.util.Date;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public interface CommonDao {	
	//function: getActivities
	//input:
	//		-numOfResult: the number of activities to be returned
	//		-userType(0->admin,1->normal user):only activities created by users of "userType" will be returned
	public List getActivities(int numOfResult,Integer userType);
	
	public List getExperiences(TbExperienceType experienceType ,Date fromDate,Date toDate);
	public List getExperienceTypes();
	
	public List getSecondHandItems(Date fromDate,Date toDate);
	public List getUsers(Date fromDate,Date toDate);//get Users who registered before "registeredDate"
	
	public List getCmsContents();
	public int updateCmsContents(List cmsContents);
}
